PER.rover.control
Class ByteUtil
java.lang.Object
PER.rover.control.ByteUtil
- public class ByteUtil
- extends java.lang.Object
Byte conversions for network
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteUtil
public ByteUtil()
unsign
public static int unsign(byte b)
networkLongToInt
public static int networkLongToInt(byte[] buf,
int offset)
networkShortToUnsignedInt
public static int networkShortToUnsignedInt(byte[] buf,
int offset)
networkShortToInt
public static int networkShortToInt(byte[] buf,
int offset)
intToNetworkLong
public static void intToNetworkLong(byte[] buf,
int num,
int place)
intToNetworkShort
public static void intToNetworkShort(byte[] buf,
int num,
int place)